<script setup lang="ts">
import {ref} from 'vue'


const dragStart = (ev) => {

}
</script>

<template>
  <div class="component-main" style="display: flex;flex-direction: column">
    <div style="margin: 5px;background: lightskyblue;color: white"
         :draggable="true"
         @dragstart="dragStart($event)">
      文本
    </div>
  </div>
</template>

<style scoped>
.component-main {
  border-radius: 5px;
  height: 100%;
  width: 200px;
  overflow-x: hidden;
  overflow-y: auto;
}
</style>